package com.cx330;

public class Example18_02 {
    public static void main(String[] args) {
        boolean flag = true;
        for (int i = 1; i <= 5 && flag; i++) {
            System.out.println("i = " + i);
            for (int j = 1; j <= 5; j++) {
                System.out.println("\tj = " + j);
                if (j == i) {
                    flag = false;
                    break;
                }
            }
        }
    }
}
